#include <stdio.h>
#include <stdlib.h>

void main()
{
    int i = 0;
    int j = 0;
    int k = 0;
    int n = 0;

    printf("narcissistic number is: ");
    for (n = 100; n < 1000; n++)
    {
        i = n / 100;     /*分解出百位*/
        j = n / 10 % 10; /*分解出十位*/
        k = n % 10;      /*分解出个位*/
        if (n == i * i * i + j * j * j + k * k * k)
        {
            printf("%-5d", n);
        }
    }
    printf("\n");
}
